<%@ page import="com.questionnaires.model.User" %>
<%--
  @author rominamilea@gmail.com
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<html>
<head>
    <title>Online Questionnaires</title>
    <link href="<c:url value="/resources/css/ui-styles.css"/>" type="text/css" rel="stylesheet"/>
    <script src="<c:url value="/resources/scripts/jquery-1.7.7.min.js"/>" type="text/javascript"></script>
    <script src="<c:url value="/resources/scripts/script.js"/>" type="text/javascript"></script>
</head>

<body>
<div id="container">
    <div id="antet">
        <p id="titlu">- ONLINE QUESTIONNAIRES -</p>
    </div>

    <div id="pagina">
        <div id="meniu_manager">
            </br>
            <h3>Management</h3>
            <ul class="aliniere">
                <li><a href="#" onclick="manageCategories()">Categories</a></li>
                <li><a href="#" onclick="manageQuestionnaires()">Questionnaires</a></li>
            </ul>

            <h3>Acount management</h3>
            <form:form id="logout_form" method="POST" action="logout">
                <ul class="aliniere">
                    <li><a href="#" onclick="logout()">Log out</a></li>
                </ul>
            </form:form>

            <h3>Go back to home page</h3>
            <ul class="aliniere">
                <li><a href="#" onclick="gotToHomePage()">Home page</a></li>
            </ul>
        </div>

        <div id="continut">
            <div id="pagina_manager">
                <h3>- MANAGER PAGE,
                    <%
                        User user = (User) session.getAttribute("user");
                    %>
                    <%= user.getFirstName() %> <%= user.getLastName() %>
                    -</h3>
                </br>
                <p class="welcome">As a manager, you can use the left side menu to:</p>
                <ol>
                    <li>Manage categories (view, add, delete, edit).</li>
                    <li>Manage questionnaires (view, add, delete, edit).</li>
                    <li>Log out.</li>
                </ol>
            </div>
        </div>
    </div>

    <div id="subsol">
        <h4>(c) Romina Milea, Adriana Oros, Ioana Rucareanu, 2012</h4>
    </div>
</div>
</body>
</html>